package Sunday;

public class Sp {
    private Integer sp_id;
    private String sp_name;
    private Integer up;
    private Integer supplier_id;
    private Integer prodcut_id;



    public Sp() {
    }

    public Sp(Integer sp_id, String sp_name, Integer up, Integer supplier_id, Integer prodcut_id) {
        this.sp_id =sp_id;
        this.sp_name =sp_name;
        this.up= up;
        this.supplier_id=supplier_id;
        this.prodcut_id=prodcut_id;
    }

    public Integer getSp_id() {
        return sp_id;
    }

    public void setSp_id(Integer sp_id) {
        this.sp_id = sp_id;
    }

    public String getSp_name() {
        return sp_name;
    }

    public void setSp_name(String sp_name) {
        this.sp_name = sp_name;
    }

    public Integer getUp() {
        return up;
    }

    public void setUp(Integer up) {
        this.up = up;
    }

    public Integer getSupplier_id(){
        return supplier_id;
    }
    public void setProduct_specs(Integer supplier_id){
        this.supplier_id=supplier_id;
    }
    public Integer getProdcut_id(){
        return prodcut_id;
    }
    public void setProdcut_id(Integer prodcut_id){
        this.prodcut_id=prodcut_id;
    }


    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("sp{");
        sb.append("sp.id=").append(sp_id);
        sb.append(", sp_name='").append(sp_name).append('\'');
        sb.append(",up  ='").append(up).append('\'');
        sb.append(",supplier_id  ='").append(supplier_id).append('\'');
        sb.append(",prodcut_id ='").append(prodcut_id).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
